package com.sky.mapper;

import com.sky.entity.AddressBook;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/*地址簿mapper*/
@Mapper
public interface AddressBookMapper {
    // 根据条件查询当前用户的所有地址
    public List<AddressBook> list(AddressBook addressBook);

    public void insert(AddressBook addressBook);

    public AddressBook getAddressBookById(Long id);

    public void update(AddressBook addressBook);

    public void updateIsDefaultAddressByUserId(AddressBook addressBook);

    public void deleteById(Long id);
}
